import tkinter as tk
#2021-06-18 13:56   by  炸天帮成员
# 此外关于PIL显示图片的方式，可以参考
#   https://blog.csdn.net/qq_28888837/article/details/113716814
# 关于PIL的信息
#   https://pypi.org/project/Pillow/
class create_frame():
    def __init__(self,root_id):
        global window_0_geometry
        self.main_window = root_id

        self.frame = tk.Frame(self.main_window)
        self.frame.place(x=0,y=0,width=window_0_geometry[0],height=window_0_geometry[1])

        self.image_for_label = tk.PhotoImage(file = "./circlePS.png")
        self.label = tk.Label(self.frame,image=self.image_for_label)
        self.label.place(x=0,y=0)

if __name__ == "__main__"   :
    root = tk.Tk()
    window_0_geometry = (400,400)
    root.geometry(f"{window_0_geometry[0]}x{window_0_geometry[1]}")
    frame_in_window_0 = create_frame(root)

    root.mainloop()
